package com.wgchao.authmanager.infrastructure.jpa.repository;

import com.wgchao.authmanager.infrastructure.jpa.entity.RoleAuthoInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: RoleAuthoInfoJpaRepository
 * @author: wgchao
 * @createTime: 2020/5/9 5:18 PM
 * @Description: TODO
 */
@Repository
public interface RoleAuthoInfoJpaRepository extends JpaRepository<RoleAuthoInfo, Long>, JpaSpecificationExecutor<RoleAuthoInfo> {
    List<RoleAuthoInfo> findAllByAgencyCodeAndRoleName(String agencyCode, String roleName);
    List<RoleAuthoInfo> findAllByAgencyCodeAndRoleNameAndProjectIdentify(String agencyCode, String roleName, String projectIdentify);
}
